package com.briup.day10.bean;

/**
 * @author ThinkBook
 */
public class Account {
    private String id;
    private double balance;

    public void setId(String id){
        System.out.println("参数id: " + id);
        System.out.println("this.id: " + this.id);
        this.id = id;
    }
    public String getId(){
        return id;   //隐式写法
        //相当于 return this.id
    }
    public void setBalance(double balance) {
        this.balance = balance;
    }
    public double getBalance() {
        return balance;
    }
    public void show() {
        System.out.println("id: " + this.id);
        //使用this去调用普通成员方法
        System.out.println("balance: " + this.getBalance());
    }

}
